<!-- saved from url=(0014)about:internet -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>HSlider.mxml</title>
<link rel="stylesheet" type="text/css" href="../../SourceStyles.css"/>
</head>

<body><pre><span class="MXMLProcessing_Instruction">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;</span>
<span class="MXMLComponent_Tag">&lt;mx:VBox</span><span class="MXMLDefault_Text"> xmlns:mx=&quot;</span><span class="MXMLString">http://www.adobe.com/2006/mxml</span><span class="MXMLDefault_Text">&quot; width=&quot;</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">&quot;
         horizontalAlign=&quot;</span><span class="MXMLString">center</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">&gt;</span>
    <span class="MXMLSpecial_Tag">&lt;mx:Script&gt;</span>
        <span class="ActionScriptOperator">&lt;!</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">CDATA</span><span class="ActionScriptBracket/Brace">[</span>
            <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">mx</span>.<span class="ActionScriptDefault_Text">collections</span>.<span class="ActionScriptDefault_Text">ArrayCollection</span>;
             
            <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">components</span>.<span class="ActionScriptDefault_Text">QSChartInterface</span>;
            
            <span class="ActionScriptReserved">include</span> <span class="ActionScriptString">&apos;slider.as&apos;</span>;
            
            <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">qsChart</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">QSChartInterface</span>;
        <span class="ActionScriptBracket/Brace">]]</span><span class="ActionScriptOperator">&gt;</span>
    <span class="MXMLSpecial_Tag">&lt;/mx:Script&gt;</span>
    <span class="MXMLComponent_Tag">&lt;mx:HBox</span><span class="MXMLDefault_Text"> width=&quot;</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">&gt;</span>
        <span class="MXMLComponent_Tag">&lt;mx:Label</span><span class="MXMLDefault_Text"> id=&apos;</span><span class="MXMLString">hSliderLabel</span><span class="MXMLDefault_Text">&apos; htmlText=&quot;</span><span class="MXMLDefault_Text">&quot;
                  x=&quot;</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">hSlider</span>.<span class="ActionScriptDefault_Text">x</span> <span class="ActionScriptOperator">+</span> <span class="ActionScriptDefault_Text">hSlider</span>.<span class="ActionScriptDefault_Text">height</span> <span class="ActionScriptOperator">*</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">hSlider</span>.<span class="ActionScriptDefault_Text">value</span> <span class="ActionScriptOperator">-</span> <span class="ActionScriptDefault_Text">hSlider</span>.<span class="ActionScriptDefault_Text">minimum</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptOperator">/</span>
            <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">hSlider</span>.<span class="ActionScriptDefault_Text">maximum</span> <span class="ActionScriptOperator">-</span> <span class="ActionScriptDefault_Text">hSlider</span>.<span class="ActionScriptDefault_Text">minimum</span><span class="ActionScriptBracket/Brace">)</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">&quot;
                  y=&apos;</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">hSlider</span>.<span class="ActionScriptDefault_Text">y</span> <span class="ActionScriptOperator">-</span> <span class="ActionScriptDefault_Text">hSlider</span>.<span class="ActionScriptDefault_Text">getStyle</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;labelOffset&quot;</span><span class="ActionScriptBracket/Brace">)</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">&apos;</span><span class="MXMLComponent_Tag">/&gt;</span>
        <span class="MXMLComponent_Tag">&lt;mx:HSlider</span><span class="MXMLDefault_Text"> id=&quot;</span><span class="MXMLString">hSlider</span><span class="MXMLDefault_Text">&quot; width=&quot;</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">&quot; minimum=&quot;</span><span class="MXMLString">0</span><span class="MXMLDefault_Text">&quot; maximum=&quot;</span><span class="MXMLString">1000</span><span class="MXMLDefault_Text">&quot;
                    snapInterval=&quot;</span><span class="MXMLString">1</span><span class="MXMLDefault_Text">&quot; liveDragging=&quot;</span><span class="MXMLString">true</span><span class="MXMLDefault_Text">&quot; labels=&quot;</span><span class="MXMLString">[0, 1000]</span><span class="MXMLDefault_Text">&quot;
                    change=&quot;</span><span class="ActionScriptDefault_Text">changeSlider</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">hSlider</span>, <span class="ActionScriptDefault_Text">hSliderLabel</span><span class="ActionScriptBracket/Brace">)</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
    <span class="MXMLComponent_Tag">&lt;/mx:HBox&gt;</span>
    <span class="MXMLComponent_Tag">&lt;mx:HBox</span><span class="MXMLDefault_Text"> id=&quot;</span><span class="MXMLString">captionBox</span><span class="MXMLDefault_Text">&quot; horizontalAlign=&quot;</span><span class="MXMLString">center</span><span class="MXMLDefault_Text">&quot; width=&quot;</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">&gt;</span>
        <span class="MXMLComponent_Tag">&lt;mx:LinkButton</span><span class="MXMLDefault_Text"> id=&quot;</span><span class="MXMLString">decrement</span><span class="MXMLDefault_Text">&quot; label=&quot;</span><span class="MXMLString">decrement</span><span class="MXMLDefault_Text">&quot; fontStyle=&quot;</span><span class="MXMLString">italic</span><span class="MXMLDefault_Text">&quot;
                       fontSize=&quot;</span><span class="MXMLString">8</span><span class="MXMLDefault_Text">&quot; click=&quot;</span><span class="ActionScriptDefault_Text">incSlider</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">hSlider</span>, <span class="ActionScriptDefault_Text">hSliderLabel</span>, <span class="ActionScriptOperator">-</span>1<span class="ActionScriptBracket/Brace">)</span>;<span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
        <span class="MXMLComment">&lt;!--</span><span class="MXMLComment">click=&quot;incAIndex(-1); updateSlider(); updateData();&quot;/&gt;</span><span class="MXMLComment">--&gt;</span>
        <span class="MXMLComponent_Tag">&lt;mx:Text</span><span class="MXMLDefault_Text"> id=&apos;</span><span class="MXMLString">caption</span><span class="MXMLDefault_Text">&apos; text=&quot;</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
        <span class="MXMLComponent_Tag">&lt;mx:LinkButton</span><span class="MXMLDefault_Text"> id=&quot;</span><span class="MXMLString">increment</span><span class="MXMLDefault_Text">&quot; label=&quot;</span><span class="MXMLString">increment</span><span class="MXMLDefault_Text">&quot; fontStyle=&quot;</span><span class="MXMLString">italic</span><span class="MXMLDefault_Text">&quot;
                       fontSize=&quot;</span><span class="MXMLString">8</span><span class="MXMLDefault_Text">&quot; click=&quot;</span><span class="ActionScriptDefault_Text">incSlider</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">hSlider</span>, <span class="ActionScriptDefault_Text">hSliderLabel</span>, 1<span class="ActionScriptBracket/Brace">)</span>;<span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
        <span class="MXMLComment">&lt;!--</span><span class="MXMLComment">click=&quot;incAIndex(+1); updateSlider(); updateData();&quot;/&gt;</span><span class="MXMLComment">--&gt;</span>
    <span class="MXMLComponent_Tag">&lt;/mx:HBox&gt;</span>
<span class="MXMLComponent_Tag">&lt;/mx:VBox&gt;</span></pre></body>
</html>
